﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autorent.Desktop.Model.AutorentMngrServiceReference;

namespace Autorent.Desktop.Model
{
    public class AutorentEntitiesContext
    {
        private static AutoRentEntities ctx;

        public static AutoRentEntities Context
        {
            get
            {
                if (ctx == null)
                {
                    ctx = new AutoRentEntities(new Uri("http://localhost:2819/AutorentMngrService.svc"));
                }
                return ctx;
            }
        }
    }
}
